package ds.factcom.view.ui;

import javax.swing.JFrame;

import ds.factcom.controller.MainController;

public class MainView extends JFrame {

	/**
	 * 
	 */
	private static final long serialVersionUID = -6758598986134119973L;
	private final MainController mainController;

	public MainView(MainController mainController) {
		this.mainController = mainController;
		initGUI();
	}
	
	private void initGUI() {
		setJMenuBar(new MainMenuBarView(mainController));
		setDefaultCloseOperation(EXIT_ON_CLOSE);
		setSize(400, 100);
		setLocation(400, 200);
		setTitle("FATCOM");
	}

	public void open(){
		setVisible(true);
	}
}
